package org.csmz.xg2333;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.nio.charset.StandardCharsets;

public class Example09 {
    public static void main(String[] args) throws Exception{
        OutputStream out = new FileOutputStream("src\\File\\example03.txt");
        String str = "黑马程序员";
        byte[] b = str.getBytes();
        for (int i = 0;i<b.length;i++){
            out.write(b[i]);
        }
        out.close();
}}
